package org.spring.springboot.app.mail.mailBind.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: eric
 * Date: 2017-12-06
 * Time: 15:56
 */
@ApiModel(description="绑定邮箱参数")
public class UserBindingVO implements Serializable {
    private static final long serialVersionUID = -1L;


    @ApiModelProperty(value = "验证码token", hidden = false)
    private String bindtoken;
    @ApiModelProperty(value = "邮箱",hidden = false)
    @NotBlank(message="邮箱必须填写")
    public String email;
    @ApiModelProperty(value = "验证码", hidden = false)
    @Length(min = 4, max = 4, message = "验证码为4位")
    public String verificationcode;

    public String getBindtoken() {
        return bindtoken;
    }

    public void setBindtoken(String bindtoken) {
        this.bindtoken = bindtoken == null ? null : bindtoken.trim();
    }
    public String getVerificationcode() {
        return verificationcode;
    }

    public void setVerificationcode(String verificationcode) {
        this.verificationcode = verificationcode == null ? null : verificationcode.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

}
